import os

from zhipuai import ZhipuAI

client = ZhipuAI(api_key=os.environ["ZHIPU_API_KEY"])
# 创建一个ZhipuAI客户端
#多次运行，你会发现glm-4每次给出的结论都不一样
response = client.chat.completions.create(
    model="glm-4",  # 填写需要调用的模型名称
    messages=[
        {"role": "user", "content": "请帮我计算一下1250908070 乘以 42525463 等于几"}
    ],
)
print(response.choices[0].message.content)